using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace SMS.Common.Entities
{
    public class Receive
    {
        private string rece_id;
        [XmlElement("ReceiveId",Order=1)]
        public string Rece_ID
        {
            get { return rece_id; }
            set { rece_id = value; }
        }

        private string ord_id;
        [XmlElement("OrderId",Order=5)]
        public string Ord_ID
        {
            get { return ord_id; }
            set { ord_id = value; }
        }

        private string deliveryNO;
        [XmlElement("DeliveryNO",Order=6)]
        public string DeliveryNO
        {
            get { return deliveryNO; }
            set { deliveryNO = value; }
        }

        private string store_id;
        [XmlElement("StoreId",Order=3)]
        public string Store_ID
        {
            get { return store_id; }
            set { store_id = value; }
        }

        private string store_name;
        [XmlIgnore]
        public string Store_Name
        {
            get { return store_name; }
            set { store_name = value; }
        }

        private string desc;
        [XmlElement("Description",Order=4)]
        public string Description
        {
            get { return desc; }
            set { desc = value; }
        }

        private string editor;
        [XmlIgnore]
        public string Editor
        {
            get { return editor; }
            set { editor = value; }
        }

        private string edit_date;
        [XmlIgnore]
        public string Edit_Date
        {
            get { return edit_date; }
            set { edit_date = value; }
        }
        private string rcpt_date;
        [XmlElement("ReceiveDate",Order=2)]
        public string Rcpt_Date
        {
            get { return rcpt_date; }
            set { rcpt_date = value; }
        }

        private string status;
        [XmlIgnore]
        public string Status
        {
            get { return status; }
            set { status = value; }
        }
        private List<ReceiveDetail> detail;
        [XmlArray("Items",Order=7),XmlArrayItem("Item")]
        public List<ReceiveDetail> Details
        {
            get { return detail; }
            set { detail = value; }
        }

        public Receive() { }
        public Receive(string rece_id, string ord_id,string deliveryNO,string rcpt_date, string store_id, string store_name, string desc, string editor, string edit_date, string status,List<ReceiveDetail> detail)
        {
            this.rece_id = rece_id;
            this.ord_id = ord_id;
            this.deliveryNO = deliveryNO;
            this.store_id = store_id;
            this.rcpt_date = rcpt_date;
            this.store_name = store_name;
            this.desc = desc;
            this.editor = editor;
            this.edit_date = edit_date;
            this.status = status;
            this.detail =detail;
        }
        public Receive(string rece_id, string ord_id, string deliveryNO, string rcpt_date, string store_id, string store_name, string desc, string editor, string edit_date, string status)
        {
            this.rece_id = rece_id;
            this.ord_id = ord_id;
            this.deliveryNO = deliveryNO;
            this.store_id = store_id;
            this.rcpt_date = rcpt_date;
            this.store_name = store_name;
            this.desc = desc;
            this.editor = editor;
            this.edit_date = edit_date;
            this.status = status;
            this.detail = detail;
        }
    }
    public class Receives
    {
        [XmlElement("Receive")]
        public Receive[] receive;
    }
}
